package key.w8.service.impl;

import key.w8.service.ref.TestService;

import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;

/**
 * @Author: k8
 * @CreateTime: 2025-03-31
 * @Version: 1.0
 */
public class TestServiceImpl1 implements TestService {
    @Override
    public Future<String> serviceString(String arg) {
        CompletableFuture<String> stringCompletableFuture = CompletableFuture.supplyAsync(() -> {
                    return "response:" + arg;
                }
        );
        return stringCompletableFuture;
    }
}
